package org.example.service.Impl;

import org.example.service.ILoginService;
import org.example.service.IUserService;

/**
 * @author lizen
 */
public class LoginService implements ILoginService {
    private final IUserService userService;

    public LoginService(IUserService userService) {
        this.userService = userService;
    }

    @Override
    public boolean login() {
        String userName = "lizt";
        return userName.equals(userService.getName());
    }
}
